package cn.factorybox.item.service;


import cn.factorybox.common.entity.PageResult;
import cn.factorybox.model.entity.DeviceData;
import cn.factorybox.model.entity.FactoryDeviceData;
import cn.factorybox.model.entity.RfidDeviceData;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-04 17:44
 */
public interface DeviceDataService {
    PageResult selectList(Map<String, Object> map) throws Exception;

    Map<String, Object> getIntegalTime(String fSerialNumber);

    Map<String, Object> getAllDayList(String fSerialNumber);

    Map<String, Object> getNewData(String fSerialNumber) throws Exception;

    boolean saveJson(DeviceData deviceData);

    boolean saveRfid(RfidDeviceData deviceData);

    Map<String, Integer> getWarningList(String fSerialNumber);

    Map<String, Object> getDifferDatas(String fSerialNumber);

    Map<String, Object> getCrestValue(String fSerialNumber);

    Map<String, Object> getDataStatus(String fSerialNumber);

    Map<String, Object> selectHundredList(String fSerialNumber);

    int deleteData(String id);

    Map<String, Object> getWeekDatas(String fSerialNumber, String date) throws ParseException;

    Map<String, Object> getMonthDatas(String fSerialNumber, String date) throws ParseException;

}
